package pojo;

import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement(name="person")
public class PersonForXML {

  private int id;

  private String name;

  private String email;

  public PersonForXML() {
  }

  public PersonForXML(int id, String name, String email) {
    this.id = id;
    this.name = name;
    this.email = email;
  }

  public int getId() {
    return id;
  }
  @XmlAttribute
  public void setId(int id) {
    this.id = id;
  }

  public String getName() {
    return name;
  }
  @XmlAttribute
  public void setName(String name) {
    this.name = name;
  }

  public String getEmail() {
    return email;
  }
  @XmlAttribute
  public void setEmail(String email) {
    this.email = email;
  }
}
